﻿using System;

namespace VSTalk.Tools
{
    internal class Subscription : ISubscription
    {
        private readonly Action _stop;

        public Subscription(Action stop)
        {
            _stop = stop;
        }

        public void Unsubscribe()
        {
            _stop();
        }
    }
}